import request from '@/utils/request'

export function api_account_names() {
  return request({
    url: '/pnl_analysis/stock_product/all_products',
    method: 'post'
  })
}

export function api_symbols_factors() {
  return request({
    url: '/pnl_analysis/stock_product/all_symbols_factors',
    method: 'post'
  })
}

export function pnl_dcmp_daily_account(params) {
  return request({
    url: '/pnl_analysis/stock_product/pnl_dcmp_daily_account',
    method: 'post',
    params
  })
}

export function pnl_dcmp_intraday_account(params) {
  return request({
    url: '/pnl_analysis/stock_product/pnl_dcmp_intraday_account',
    method: 'post',
    params
  })
}

export function pnl_dcmp_daily_symbol_account(params) {
  return request({
    url: '/pnl_analysis/stock_product/pnl_dcmp_daily_symbol_account',
    method: 'post',
    params
  })
}

export function pnl_dcmp_intraday_symbol_account(params) {
  return request({
    url: '/pnl_analysis/stock_product/pnl_dcmp_intraday_symbol_account',
    method: 'post',
    params
  })
}

export function pnleod_account_detail_date(params) {
  return request({
    url: '/products_monitor/pnleod_account_detail_date',
    method: 'post',
    params
  })
}
